import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
// import { createPinia } from "pinia";
import persist from "pinia-plugin-persistedstate";
import "@/utils/http";
import "@/access";
import "@/assets/reset.css";
import ElementPlus from "element-plus";
import locale from "element-plus/dist/locale/zh-cn.mjs";
import "element-plus/dist/index.css";
import pinia from "@/stores";
import "bytemd/dist/index.css";
// const pinia = createPinia();
pinia.use(persist);

createApp(App).use(ElementPlus, { locale }).use(pinia).use(router).mount("#app");
